package com.runvp.rest.user;

import com.runvp.common.annotation.Log;
import com.runvp.common.core.controller.BaseController;
import com.runvp.common.core.domain.AjaxResult;
import com.runvp.common.enums.BusinessType;
import com.runvp.service.biz.service.IBizCustomerEquityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 顾客权益Controller
 *
 * @author runvp
 * @date 2022-12-31
 */
@Controller
@RequestMapping("/app/customer/equity")
public class BizCustomerEquityController extends BaseController {

    @Autowired
    private IBizCustomerEquityService bizCustomerEquityService;


    /**
     * 权益核销
     */
    @Log(title = "权益核销", businessType = BusinessType.OTHER)
    @GetMapping("/consumption")
    @ResponseBody
    public AjaxResult consumption(String sn, String code, String phone) {
        return AjaxResult.success(bizCustomerEquityService.consumption(sn,code, phone));
    }


}
